{% extends 'index.html' %}
{% load verificationtags %}
{% block title %}{% endblock %}

{% block extra-head %}

    <link rel="stylesheet" type="text/css" href="/static/arpv.css">

{% endblock %}

{% block content%}

<div class="email_reset">

{% if request.user.is_authenticated and request.user.is_staff %}

	{% oa_get_task user=request.user %} <!-- precaching the task here, boss -->

		{% if oa_ver.task %}

			{% oa_ver_task user=request.user POST=request.POST task=oa_ver.task%}

				{{oa_ver.errors}}

				<div class="arpv_img_large"><img src="{{oa_ver.task.pv1.photo.url}}=s240-c"></div><div class="arpv_img_large"><img src="{{oa_ver.task.pv2.photo.url}}=s240-c"></div><br>

				<h2>Is there a single person in both photos?</h2>

				<form method="post" action="">	  
				          {% csrf_token %}

				          <h2>{{oa_ver.form.choose}}</h2>
				          <br>

				           <p><input type="submit" class ="small button green" value="Submit"/></p>

				</form>

			{% endoa_ver_task %}

		{% else %}
			<h2>Task Unavailable</h2>
		{% endif %}

	{% endoa_get_task %}

{% else %}

<h2>You are not yet authorized to commit this task</h2>

{% endif %}

</div>

{% endblock %}
